import { createApp } from 'vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import axios from 'axios'
// import * as VueRouter from 'vue-router';
import App from './App.vue'
import router from './router/index';


const app = createApp(App)

// axios.defaults.baseURL = 'http://127.0.0.1:8088/';

app.use(ElementPlus)
// app.use(VueRouter)
app.config.globalProperties.$axios = axios

for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}

app.use(router).mount('#app')
